package com.pig4cloud.pigx.shop.user.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pigx.common.data.datascope.PigxBaseMapper;
import com.pig4cloud.pigx.shop.user.api.dto.CustomToUserOrderSummaryDTO;
import com.pig4cloud.pigx.shop.user.api.dto.CustomToUserSummaryDTO;
import com.pig4cloud.pigx.shop.user.api.entity.ShopUser;
import com.pig4cloud.pigx.shop.user.api.vo.CustomToUserOrderSummaryVO;
import com.pig4cloud.pigx.shop.user.api.vo.CustomToUserSummaryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShopUserSummaryMapper extends PigxBaseMapper<ShopUser> {

	/**
	 * 根据销售代表获取下级用户数量
	 * @param customToUserSummaryDTO
	 * @return
	 */
	IPage<CustomToUserSummaryVO> getCustomToUserSummary(Page page,
			@Param("query") CustomToUserSummaryDTO customToUserSummaryDTO);

	/**
	 * 获取详情
	 * @param customToUserSummaryDTO
	 * @return
	 */
	List<CustomToUserSummaryVO> getCustomToUserDetail(@Param("query") CustomToUserSummaryDTO customToUserSummaryDTO);

}
